<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>惊喜</title>
    <link rel="stylesheet" href="../../static/css/common/adaptor.css">
    <link rel="stylesheet" href="../../static/css/common/common.css">
    <link rel="stylesheet" href="../../static/css/point/tweet.css">
</head>
<body>
    <div class="layout">
        <div class="loadingMarsk">
            <div class="loadingPic">
                <div class="rotatePic"><img src="../../static/img/1@3x.png" alt=""></div>
                <div class="centerPic"><img src="../../static/img/2@3x.png" alt=""></div>
            </div>
        </div>
        <div class="contentBox">
            <!--动态渲染-->
        </div>
        <div class="recommendProduct">
            <!--动态渲染-->
        </div>
        <div class="click">
            <!--动态渲染-->
        </div>
    </div>
    <script type="text/template" id="contentBox">
        <div class="contentImg">
            <div class="img">
                <img src="{{tweetDetail.midPic}}" alt="">
                <i></i>
            </div>
            <div class="contentText">
                <div class="title">{{tweetDetail.title}}</div>
                <div class="releaseAndRead">{{tweetDetail.releaseTime}}发布<span class="line">|</span>
                    {{if tweetDetail.read>9999}}
                    <span>9999<sup>+</sup>人阅读</span>
                    {{/if}}
                    {{if tweetDetail.read<=9999}}<span>{{tweetDetail.read}}人阅读</span>
                    {{/if}}
                </div>
            </div>
        </div>
        <div class="content">{{#tweetDetail.content}}</div>
    </script>
    <script type="text/template" id="recommendProduct">
        {{each plist as item index}}
        <div class="productItem" data-id={{item.id}}>
            <div class="pImg">
                <img src="{{item.midPic}}" alt="">
                <button>￥{{item.price.toFixed(2)}}<div class="pline">|</div>查看详情</button>
            </div>
            <div class="productName">{{item.productName}}</div>
            <div class="productMsg">{{item.details}}</div>
        </div>
        {{/each}}
    </script>
    <script type="text/template" id="click">
        <div class="clickImgAndClicNum">
            {{if click.status}}
            <div class="clickImg" data-status=1><img src="../../static/img/zan_S@3x.png" alt=""></div>
            {{/if}} {{if !click.status}}
            <div class="clickImg" data-status=0><img src="../../static/img/zan_U@3x.png" alt=""></div>
            {{/if}}
            <div class="clickNum"><span>{{click.thumb}}</span>人点赞</div>
        </div>
    </script>
    <script src="../../static/assets/jquery/jquery.min.js"></script>
    <script src="../../static/assets/fastclick/fastclick.js"></script>
    <script src="../../static/assets/art-template/template.js"></script>
    <script src="../../static/js/config/config.js"></script>
    <script src="../../static/js/config/tools.js"></script>
    <script src="../../static/js/point/content.js"></script>
</body>
</html>